package com.example.rfidwms;

import org.json.JSONObject;

import java.util.HashMap;
import java.util.Map;

public class Application {

    //    请求链接
    private static final String path = "https://service-fhd88ay5-1309058926.bj.apigw.tencentcs.com/release/";
    public static String path_login = path + "login";
    public static String path_allMaterial = path + "getAllMaterial";
    public static String path_fuzzy_search = path + "fuzzy_search";
    public static String path_instock = path + "stock_search";
    public static String path_bulk_insert = path + "bulk_insert";
    public static String path_stock_count = path + "stock_count";

    private static final String path_local = "http://10.0.2.2:5000/";
    public static String path_login_local = path_local + "login";
    public static String path_allMaterial_local = path_local + "getAllMaterial";
    public static String path_fuzzy_search_local = path_local + "fuzzy_search";
    public static String path_instock_local = path_local + "stock_search";
    public static String path_bulk_insert_local = path_local + "bulk_insert";
    public static String path_stock_count_local = path_local + "stock_count";

    //    用户信息的全局变量，用户登录时获取
    public static String user_id;
    public static String user_name;
    public static String dpt_id;
//    public static JSONArray material_jsonArray;
    public static Map<String, JSONObject> materialMap= new HashMap<>();;
}
